Optimal. Leaf size=110 \[ \frac{\sqrt{a+b x^2} (2 b c-3 a d)}{3 a^2 x}+\frac{(2 b e-a f) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}-\frac{c \sqrt{a+b x^2}}{3 a x^3}+\frac{f x \sqrt{a+b x^2}}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.127105, antiderivative size = 110, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {1807, 1585, 1265, 388, 217, 206} \[ \frac{\sqrt{a+b x^2} (2 b c-3 a d)}{3 a^2 x}+\frac{(2 b e-a f) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}-\frac{c \sqrt{a+b x^2}}{3 a x^3}+\frac{f x \sqrt{a+b x^2}}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1807
Rule 1585
Rule 1265
Rule 388
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{c+d x^2+e x^4+f x^6}{x^4 \sqrt{a+b x^2}} \, dx &=-\frac{c \sqrt{a+b x^2}}{3 a x^3}-\frac{\int \frac{(2 b c-3 a d) x-3 a e x^3-3 a f x^5}{x^3 \sqrt{a+b x^2}} \, dx}{3 a}\\ &=-\frac{c \sqrt{a+b x^2}}{3 a x^3}-\frac{\int \frac{2 b c-3 a d-3 a e x^2-3 a f x^4}{x^2 \sqrt{a+b x^2}} \, dx}{3 a}\\ &=-\frac{c \sqrt{a+b x^2}}{3 a x^3}+\frac{(2 b c-3 a d) \sqrt{a+b x^2}}{3 a^2 x}+\frac{\int \frac{3 a^2 e+3 a^2 f x^2}{\sqrt{a+b x^2}} \, dx}{3 a^2}\\ &=-\frac{c \sqrt{a+b x^2}}{3 a x^3}+\frac{(2 b c-3 a d) \sqrt{a+b x^2}}{3 a^2 x}+\frac{f x \sqrt{a+b x^2}}{2 b}+\frac{(2 b e-a f) \int \frac{1}{\sqrt{a+b x^2}} \, dx}{2 b}\\ &=-\frac{c \sqrt{a+b x^2}}{3 a x^3}+\frac{(2 b c-3 a d) \sqrt{a+b x^2}}{3 a^2 x}+\frac{f x \sqrt{a+b x^2}}{2 b}+\frac{(2 b e-a f) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )}{2 b}\\ &=-\frac{c \sqrt{a+b x^2}}{3 a x^3}+\frac{(2 b c-3 a d) \sqrt{a+b x^2}}{3 a^2 x}+\frac{f x \sqrt{a+b x^2}}{2 b}+\frac{(2 b e-a f) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.105422, size = 93, normalized size = 0.85 \[ \frac{\sqrt{a+b x^2} \left (3 a^2 f x^4-2 a b \left (c+3 d x^2\right )+4 b^2 c x^2\right )}{6 a^2 b x^3}+\frac{(2 b e-a f) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 117, normalized size = 1.1 \begin{align*}{\frac{fx}{2\,b}\sqrt{b{x}^{2}+a}}-{\frac{af}{2}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{3}{2}}}}+{e\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){\frac{1}{\sqrt{b}}}}-{\frac{c}{3\,a{x}^{3}}\sqrt{b{x}^{2}+a}}+{\frac{2\,bc}{3\,{a}^{2}x}\sqrt{b{x}^{2}+a}}-{\frac{d}{ax}\sqrt{b{x}^{2}+a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.46964, size = 479, normalized size = 4.35 \begin{align*} \left [-\frac{3 \,{\left (2 \, a^{2} b e - a^{3} f\right )} \sqrt{b} x^{3} \log \left (-2 \, b x^{2} + 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) - 2 \,{\left (3 \, a^{2} b f x^{4} - 2 \, a b^{2} c + 2 \,{\left (2 \, b^{3} c - 3 \, a b^{2} d\right )} x^{2}\right )} \sqrt{b x^{2} + a}}{12 \, a^{2} b^{2} x^{3}}, -\frac{3 \,{\left (2 \, a^{2} b e - a^{3} f\right )} \sqrt{-b} x^{3} \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) -{\left (3 \, a^{2} b f x^{4} - 2 \, a b^{2} c + 2 \,{\left (2 \, b^{3} c - 3 \, a b^{2} d\right )} x^{2}\right )} \sqrt{b x^{2} + a}}{6 \, a^{2} b^{2} x^{3}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.97899, size = 197, normalized size = 1.79 \begin{align*} \frac{\sqrt{a} f x \sqrt{1 + \frac{b x^{2}}{a}}}{2 b} - \frac{a f \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{2 b^{\frac{3}{2}}} + e \left (\begin{cases} \frac{\sqrt{- \frac{a}{b}} \operatorname{asin}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b < 0 \\\frac{\sqrt{\frac{a}{b}} \operatorname{asinh}{\left (x \sqrt{\frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b > 0 \\\frac{\sqrt{- \frac{a}{b}} \operatorname{acosh}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{- a}} & \text{for}\: b > 0 \wedge a < 0 \end{cases}\right ) - \frac{\sqrt{b} c \sqrt{\frac{a}{b x^{2}} + 1}}{3 a x^{2}} - \frac{\sqrt{b} d \sqrt{\frac{a}{b x^{2}} + 1}}{a} + \frac{2 b^{\frac{3}{2}} c \sqrt{\frac{a}{b x^{2}} + 1}}{3 a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20394, size = 238, normalized size = 2.16 \begin{align*} \frac{\sqrt{b x^{2} + a} f x}{2 \, b} + \frac{{\left (a \sqrt{b} f - 2 \, b^{\frac{3}{2}} e\right )} \log \left ({\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2}\right )}{4 \, b^{2}} + \frac{2 \,{\left (3 \,{\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{4} \sqrt{b} d + 6 \,{\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2} b^{\frac{3}{2}} c - 6 \,{\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2} a \sqrt{b} d - 2 \, a b^{\frac{3}{2}} c + 3 \, a^{2} \sqrt{b} d\right )}}{3 \,{\left ({\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2} - a\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]